{% if has_account %}
    Logged in
{% else %} {% if created %}
    created!  
{% else %}

<form action="" method="post"> {% csrf_token %}
    {{ form.as_p }}
<input type="submit" value="Submit"/>
</form>
{% endif %}
{% endif %}
